package com.lc.user.express.httpserver;

import com.lc.user.express.model.DriverModel;
import com.zcx.helper.http.AsyCallBack;
import com.zcx.helper.http.note.HttpInlet;

import org.json.JSONArray;
import org.json.JSONObject;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by Administrator on 2016/4/25.选择接单的某司机
 */
@HttpInlet(Net.GET_CHOOSE_DIVER)
public class GetChooseDiver extends ZJDBAsyGet<Object> {

    public String orderid;//订单id
    public String userid;
    public String driverid;

    public GetChooseDiver(String userid, String orderid, String driverid, AsyCallBack<Object> asyCallBack) {
        super(asyCallBack);
        this.orderid = orderid;
        this.userid = userid;
        this.driverid = driverid;

    }

    @Override
    protected Object parser(JSONObject object) {
        if (object.optInt("message") == 1) {
            return "1";
        }

        return null;
    }


}
